package com.lhs.entity.search;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDate;

@Data
@Document(collection = "hot_search_history")
public class HotSearchHistory {
    @Id
    private Long id;
    private LocalDate date;
    private String keyword;
    private Double score;

    public HotSearchHistory(LocalDate date, String keyword, Double score) {
        this.date = date;
        this.keyword = keyword;
        this.score = score;
    }
}
